import fetch from '@/utils/request';
/**
 * 会员API对象
 * @module MemberApi
 */
const MemberApi = {
	/**
	 * @function get
	 * @description 查询用户会员
	 */
	get: () => fetch.request({
		url: '/api/user/vip/get',
		method: 'GET',
	}),
	/**
	 * @function buyables
	 * @description 查询会员列表
	 */
	buyables: () => fetch.request({
		url: '/api/user/vip/buyables',
		method: 'GET',
	}),
	/**
	 * @function info
	 * @description 查询会员信息
	 */
	info: (id) => fetch.request({
		url: '/api/user/vip/info',
		method: 'POST',
		data: {
			id: id
		}
	}),
};
export default MemberApi;